//
//  Layout.h
//  UI豆瓣2015到2016跨年作业
//
//  Created by LHY on 16/1/4.
//  Copyright © 2016年 Lanou 32 李昊宇. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol Layout <NSObject>

- (CGFloat)heightForItemIndexPath:(NSIndexPath *)indexPath;

@end


@interface Layout : UICollectionViewLayout

//item 的大小
@property (nonatomic , assign)CGSize itemSize;


//内边距
@property (nonatomic , assign)UIEdgeInsets sectionLnsets;
//item 的间距
@property (nonatomic , assign)CGFloat insertItemSpacing;
//有多少列
@property (nonatomic , assign)NSUInteger numberOfColumns;
//代理人
@property (nonatomic , assign)id<Layout>delegate;



@end
